package geon.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface Dao<T> {

	public Integer add(T o) throws SQLException;

	public void upd(T o) throws SQLException;

	public void del(int codigo) throws SQLException;

	public T set(ResultSet rs) throws SQLException;

	public T get(int codigo) throws SQLException;

	public T get(Object param) throws SQLException;

	public List<T> list() throws SQLException;
	
	public List<T> list(Object...params) throws SQLException;

}
